Method and system for sorting desktop objects

ABSTRACT

A method includes acquiring a desktop thumbnail of each desktop screen in a desktop screen set, and collectively displaying all the acquired desktop thumbnails on a desktop home screen; listening to a sequence of tapping operations performed on the desktop thumbnails displayed on the desktop home screen, and determining a tapping location of each tapping operation in the sequence of tapping operations; and sorting and displaying, according to the tapping location of each tapping operation in the sequence of tapping operations, desktop objects that are on each desktop screen on a multi-screen desktop. Desktop thumbnails of desktop screens in a desktop screen set are collectively displayed on a desktop home screen such that desktop objects on each desktop screen on a multi-screen desktop can be sorted and displayed by performing a tapping operation on the desktop home screen.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of U.S. patent application Ser. No.14/984,385 filed on Dec. 30, 2015, which is a continuation ofInternational Patent Application No. PCT/CN2014/093216 filed on Dec. 8,2014, which claims priority to Chinese Patent Application No.201310658653.4 filed on Dec. 6, 2013. All of the aforementionedapplications are hereby incorporated by reference in their entireties.

TECHNICAL FIELD

Embodiments of the present disclosure relate to the field of terminalapplication, and in particular, to a method and system for sortingdesktop objects.

BACKGROUND

ANDROID, as an open operating system, has been increasingly widely usedin terminal devices. With gradual increase of application programs, fora terminal device (for example, an ANDROID smart phone) using an ANDROIDoperating system, to operate, in a more convenient and quick manner,application programs installed on the terminal device, a multi-screendesktop design is used for an existing terminal device using an ANDROIDoperating system. The multi-screen desktop design means that a desktopis divided into several desktop screens, where each desktop screen isused to display a desktop object, one desktop screen is a one-screendesktop, and multiple desktop screens form a multi-screen desktop. Thedesktop object refers to an object that needs to be displayed on thedesktop, and the desktop object includes but is not limited to ashortcut icon of an application program, a file, a folder, and the like.In the terminal device using a multi-screen desktop design, how to sortdesktop objects on a multi-screen desktop is a difficulty to be resolvedfor the existing terminal device using a multi-screen desktop design.

A method for sorting desktop objects is generally setting a desktopobject in a first location to a draggable state first, and then draggingthe desktop object in the first location to a second location, so as toachieve an objective of moving the desktop object from the firstlocation to the second location. For a terminal device using amulti-screen desktop design, this manner has problems of a complexoperation, high time consumption, and a high locating error rate. If anapplication program icon A on a first desktop screen is to be moved to ablank area on a fifth desktop screen, it is required to touch and holddown the application program icon A to set the application program iconA to a draggable state; drag the application program icon A to a screenedge, so as to drag the application program icon A from the firstdesktop screen to a second desktop screen; and continue to drag theapplication program icon A that has been dragged to the second desktopscreen to a screen edge, so as to drag the application program icon Afrom the second desktop screen to a third desktop screen. By analogy,the application program icon A can be dragged to the fifth desktopscreen only after four times of desktop screen switching are performed;and finally, the application program icon A is released in the blankarea on the fifth desktop screen, so that the application program icon Aon the first desktop screen can be moved to the blank area on the fifthdesktop screen. For another example, if locations of an applicationprogram icon A and an application program icon B are to be exchanged, itis required to first touch and hold down the application program icon Ato set the application program icon A to a draggable state, drag theapplication program icon A to a blank area, and then drag theapplication program icon B to a start location of the applicationprogram icon A; and finally, move, to a start location of theapplication program icon B, the application program icon A that has beendragged. After the foregoing processes end, location exchange ofapplication program icons is complete.

SUMMARY

Embodiments of the present disclosure provide a method and a system forsorting desktop objects, which is intended to resolve a problem of acomplex operation and high time consumption in an existing method forsorting desktop objects.

According to a first aspect, a method for sorting desktop objects isprovided, where the method includes acquiring a desktop thumbnail ofeach desktop screen in a desktop screen set, and collectively displayingall the acquired desktop thumbnails on a desktop home screen, where thedesktop screen set includes at least one desktop screen on amulti-screen desktop, the desktop thumbnail of the desktop screenincludes a desktop object thumbnail that is in a one-to-onecorrespondence with a desktop object on the desktop screen, and thedesktop home screen is any desktop screen on the multi-screen desktop;listening to a sequence of tapping operations performed on the desktopthumbnails displayed on the desktop home screen, and determining atapping location of each tapping operation in the sequence of tappingoperations, where the tapping location includes a tapped desktopthumbnail and location coordinates that are of the tapping operation andare in the tapped desktop thumbnail; and sorting and displaying,according to the tapping location of each tapping operation in thesequence of tapping operations, desktop objects that are on each desktopscreen on the multi-screen desktop.

With reference to the first aspect, in a first possible implementationmanner of the first aspect, the acquiring a desktop thumbnail of eachdesktop screen in a desktop screen set includes performing zooming-outprocessing on each desktop screen in the desktop screen set and thedesktop object on the desktop screen according to a preset zoom ratio,to obtain the desktop thumbnail of each desktop screen in the desktopscreen set; and scanning the desktop thumbnail of each desktop screen inthe desktop screen set, to acquire a screen identifier and firstlocation information that are of the desktop thumbnail, where the firstlocation information is information about a location that is of thedesktop object thumbnail included in the desktop thumbnail and that isin the desktop thumbnail.

With reference to the first possible implementation manner of the firstaspect, in a second possible implementation manner of the first aspect,the collectively displaying all the acquired desktop thumbnails on adesktop home screen includes displaying, on the desktop home screen, awindow interface that is in a one-to-one correspondence with the desktopthumbnail of each desktop screen in the desktop screen set; andcorrespondingly displaying, according to the screen identifier of thedesktop thumbnail, the acquired desktop thumbnails on the windowinterface that is on the desktop home screen, and displaying, on thedesktop thumbnail according to the first location information, thedesktop object thumbnail that is in the desktop thumbnail.

With reference to the first aspect, in a third possible implementationmanner of the first aspect, the sequence of tapping operations includesseveral tapping operations with tapping order, each tapping operationmay be performed on one or more desktop thumbnails, and each tappingoperation may include multiple tapping locations.

With reference to the third possible implementation manner of the firstaspect, in a fourth possible implementation manner of the first aspect,the sorting and displaying, according to the tapping location of eachtapping operation in the sequence of tapping operations, desktop objectsthat are on each desktop screen on the multi-screen desktop includesgrouping the sequence of tapping operations into several tappingoperation pairs using an odd-even matching rule; for each tappingoperation pairs, determining, according to a desktop thumbnail tapped ineach tapping operation in the tapping operation pair, a desktop screentapped in the tapping operation, and determining, according to locationcoordinates that are of each tapping operation and are in the tappeddesktop thumbnail, a location tapped on the tapped desktop screen in thetapping operation; and for each tapping operation pairs, exchanginglocations of desktop objects that are in the locations tapped on thetapped desktop screens in the tapping operations in the tappingoperation pair.

With reference to the third possible implementation manner of the firstaspect, in a fifth possible implementation manner of the first aspect,the sorting and displaying, according to the tapping location of eachtapping operation in the sequence of tapping operations, desktop objectsthat are on each desktop screen on the multi-screen desktop includesgrouping the sequence of tapping operations into several tappingoperation pairs using an odd-even matching rule; for each tappingoperation pairs, determining, according to a desktop thumbnail tapped ineach tapping operation in the tapping operation pair and locationcoordinates that are of the tapping operation and are in the tappeddesktop thumbnail, a desktop object thumbnail tapped in the tappingoperation; for each tapping operation pairs, exchanging locations of thedesktop object thumbnails tapped in the tapping operations in thetapping operation pair; and sorting and displaying, according to eachdesktop thumbnail displayed on the desktop home screen and the desktopobject thumbnail included in the desktop thumbnail, desktop objects on adesktop screen that is in the desktop screen set and is corresponding tothe desktop thumbnail.

With reference to the fifth possible implementation manner of the firstaspect, in a sixth possible implementation manner of the first aspect,the sorting and displaying, according to the desktop thumbnail that isof each desktop screen and is displayed on the desktop home screen andthe desktop object thumbnail included in the desktop thumbnail, desktopobjects on a corresponding desktop screen in the desktop screen setincludes acquiring a screen identifier and second location informationthat are of the desktop thumbnail, where the second location informationis information about a location that is of the desktop object thumbnailin the desktop thumbnail and that is in the desktop thumbnail; anddisplaying, according to the second location information and on adesktop screen corresponding to the screen identifier, a desktop objectthat is in a one-to-one correspondence with the desktop object thumbnailin the desktop thumbnail.

According to a second aspect, a system for sorting desktop objects isprovided, where the system includes a displaying unit configured toacquire a desktop thumbnail of each desktop screen in a desktop screenset, and collectively display all the acquired desktop thumbnails on adesktop home screen, where the desktop screen set includes at least onedesktop screen on a multi-screen desktop, the desktop thumbnail of thedesktop screen includes a desktop object thumbnail that is in aone-to-one correspondence with a desktop object on the desktop screen,and the desktop home screen is any desktop screen on the multi-screendesktop; a listening unit configured to listen to a sequence of tappingoperations performed on the desktop thumbnails displayed on the desktophome screen, and determine a tapping location of each tapping operationin the sequence of tapping operations, where the tapping locationincludes a tapped desktop thumbnail and location coordinates that are ofthe tapping operation and are in the tapped desktop thumbnail; and asorting unit configured to sort and display, according to the tappinglocation of each tapping operation in the sequence of tappingoperations, desktop objects that are on each desktop screen on themulti-screen desktop.

With reference to the second aspect, in a first possible implementationmanner of the second aspect, the displaying unit includes a thumbnailprocessing module configured to perform zooming-out processing on eachdesktop screen in the desktop screen set and the desktop object on thedesktop screen according to a preset zoom ratio, to obtain the desktopthumbnail of each desktop screen in the desktop screen set; and athumbnail acquiring module configured to scan the desktop thumbnail ofeach desktop screen in the desktop screen set, to acquire a screenidentifier and first location information that are of the desktopthumbnail, where the first location information is information about alocation that is of the desktop object thumbnail included in the desktopthumbnail and that is in the desktop thumbnail.

With reference to the first possible implementation manner of the secondaspect, in a second possible implementation manner of the second aspect,the displaying unit further includes a window displaying module,configured to display, on the desktop home screen, a window interfacethat is in a one-to-one correspondence with the desktop thumbnail ofeach desktop screen in the desktop screen set; and a thumbnaildisplaying module, configured to correspondingly display, according tothe screen identifier of the desktop thumbnail, the acquired desktopthumbnails on the window interface that is on the desktop home screen,and display, on the desktop thumbnail according to the first locationinformation, the desktop object thumbnail that is in the desktopthumbnail.

With reference to the second aspect, in a third possible implementationmanner of the second aspect, the sequence of tapping operations includesseveral tapping operations with tapping order, each tapping operationmay be performed on one or more desktop thumbnails, and each tappingoperation may include multiple tapping locations.

With reference to the third possible implementation manner of the secondaspect, in a fourth possible implementation manner of the second aspect,the sorting unit includes an operation pair grouping module configuredto group the sequence of tapping operations into several tappingoperation pairs using an odd-even matching rule; a tapping locationdetermining module configured to, for each tapping operation pairs,determine, according to a desktop thumbnail tapped in each tappingoperation in the tapping operation pair, a desktop screen tapped in thetapping operation, and determine, according to location coordinates thatare of each tapping operation and are in the tapped desktop thumbnail, alocation tapped on the tapped desktop screen in the tapping operation;and a location exchanging module configured to, for each tappingoperation pairs, exchange locations of desktop objects that are in thelocations tapped on the tapped desktop screens in the tapping operationsin the tapping operation pair.

With reference to the third possible implementation manner of the secondaspect, in a fifth possible implementation manner of the second aspect,the sorting unit includes an operation pair grouping module configuredto group the sequence of tapping operations into several tappingoperation pairs using an odd-even matching rule; a tapped-thumbnaildetermining module configured to, for each tapping operation pairs,determine, according to a desktop thumbnail tapped in each tappingoperation in the tapping operation pair and location coordinates thatare of the tapping operation and are in the tapped desktop thumbnail, adesktop object thumbnail tapped in the tapping operation; a thumbnaillocation exchanging module configured to, for each tapping operationpairs, exchange locations of the desktop object thumbnails tapped in thetapping operations in the tapping operation pair; and a sorting anddisplaying module configured to sort and display, according to eachdesktop thumbnail displayed on the desktop home screen and the desktopobject thumbnail included in the desktop thumbnail, desktop objects on adesktop screen that is in the desktop screen set and is corresponding tothe desktop thumbnail.

With reference to the fifth possible implementation manner of the secondaspect, in a sixth possible implementation manner of the second aspect,the sorting and displaying module is specifically configured to acquirea screen identifier and second location information that are of thedesktop thumbnail, where the second location information is informationabout a location that is of the desktop object thumbnail in the desktopthumbnail and that is in the desktop thumbnail; and display, accordingto the second location information and on a desktop screen correspondingto the screen identifier, a desktop object that is in a one-to-onecorrespondence with the desktop object thumbnail in the desktopthumbnail.

In the embodiments of the present disclosure, desktop thumbnails ofdesktop screens in a desktop screen set are collectively displayed on adesktop home screen, and a sequence of tapping operations performed onthe desktop thumbnails displayed on the desktop home screen is listenedto; and desktop objects on each desktop screen on a multi-screen desktopare sorted and displayed according to a tapping location of each tappingoperation in the sequence of tapping operations. It is only required totap, on a desktop home screen, a desktop object thumbnail in a desktopthumbnail, so that desktop objects on each desktop screen on amulti-screen desktop can be sorted and displayed. Therefore, a sortingoperation is simple, consumes less time, and has high locating accuracy.

BRIEF DESCRIPTION OF DRAWINGS

FIG. 1 is a flowchart of implementing a method for sorting desktopobjects according to an embodiment of the present disclosure;

FIG. 2A, FIG. 2B, and FIG. 2C are exemplary diagrams of desktop screensaccording to an embodiment of the present disclosure;

FIG. 3A, FIG. 3B, and FIG. 3C are desktop thumbnails of the desktopscreens shown in FIG. 2A, FIG. 2B, and FIG. 2C;

FIG. 4 is an exemplary diagram formed after the desktop thumbnails shownin FIG. 3A, FIG. 3B, and FIG. 3C are displayed on a desktop home screen;

FIG. 5 is a specific flowchart of implementing S103 shown in FIG. 1according to an embodiment of the present disclosure;

FIG. 6 is an exemplary diagram formed after a tapping operation isperformed on the desktop home screen shown in FIG. 4 according to anembodiment of the present disclosure;

FIG. 7A, FIG. 7B, and FIG. 7C are exemplary diagrams of desktop screensobtained after sorting the desktop screens shown in FIG. 2a , FIG. 2b ,and FIG. 2 c;

FIG. 8 is a specific flowchart of implementing S103 shown in FIG. 1according to another embodiment of the present disclosure;

FIG. 9 is an exemplary diagram of a desktop home screen obtained aftersorting desktop thumbnails on a desktop home screen shown in FIG. 6according to an embodiment of the present disclosure;

FIG. 10 is a structural diagram of a system for sorting desktop objectsaccording to an embodiment of the present disclosure;

FIG. 11 is a structural diagram of a system for sorting desktop objectsaccording to another embodiment of the present disclosure; and

FIG. 12 is a schematic diagram of a mobile terminal according to anembodiment of the present disclosure.

DESCRIPTION OF EMBODIMENTS

To make the objectives, technical solutions, and advantages of thepresent disclosure clearer and more comprehensible, the followingfurther describes the present disclosure in detail with reference to theaccompanying drawings and embodiments. It should be understood that thespecific embodiments described herein are merely used to explain thepresent disclosure but are not intended to limit the present disclosure.

In the embodiments of the present disclosure, desktop thumbnails ofdesktop screens on a multi-screen desktop are collectively displayed ona desktop home screen, so that a user does not need to drag a desktopobject from one desktop screen to another desktop screen to exchangelocations of desktop objects; instead, a desktop object thumbnail in thedesktop thumbnail may be directly tapped on the desktop home screen toexchange locations of desktop objects on a same desktop screen orexchange locations of desktop objects on different desktop screens.Therefore, a sorting operation on desktop objects is simple, consumesless time, and has high locating accuracy.

To describe the technical solutions of the present disclosure, specificembodiments are used for description in the following.

FIG. 1 shows a procedure for implementing a method for sorting desktopobjects according to an embodiment of the present disclosure. Detaileddescriptions are as follows.

S101. Acquire a desktop thumbnail of each desktop screen in a desktopscreen set, and collectively display all the acquired desktop thumbnailson a desktop home screen, where the desktop screen set includes at leastone desktop screen on a multi-screen desktop, and the desktop homescreen is any desktop screen on the multi-screen desktop.

When a multi-screen desktop design is used for a desktop of a terminaldevice, the desktop of the terminal device is divided into multipledesktop screens, where each desktop screen is divided into multipledisplay areas according to a grid matrix of a P×Q order, and eachdisplay area is used to display one desktop object. A location that isof each display area used to display a desktop object and that is on thedesktop screen is represented using a relative location in the gridmatrix. The relative location in the grid matrix refers to a locationrepresented using a row and column identifier of the grid matrix, forexample, using the X^(st) row and the Y^(st) column to represent alocation that is of each display area used to display a desktop objectand that is on the desktop screen.

When there is a desktop object displayed on the display area, a locationthat is of the desktop object and that is on the desktop screen is alocation that is of a display area used to display the desktop objectand that is on the desktop screen.

That a four-screen desktop design is used for the desktop of theterminal device is used as an example. The desktop of the terminaldevice includes four desktop screens, and FIG. 2A, FIG. 2B, and FIG. 2Crepresent any three desktop screens of the four desktop screens. In thedesktop screens shown in FIG. 2A, FIG. 2B, and FIG. 2C, each of thedesktop screens is divided into six display areas using a grid matrix ofa 3×2 order, and the six display areas are respectively corresponding tosix grids in FIG. 2A, FIG. 2B, and FIG. 2C, where a grid filled with aletter represents that a desktop object is displayed on the displayarea, and a grid without a letter represents a blank area.

In this embodiment, the desktop screen set includes one or more desktopscreens on the multi-screen desktop. The desktop screen included in thedesktop screen set may be all desktop screens on the multi-screendesktop, or may be a desktop screen, on which desktop objects need to besorted, on the multi-screen desktop.

The desktop thumbnail of the desktop screen is obtained by performingzooming-out processing on the desktop screen and a desktop object on thedesktop screen according to a preset zoom ratio. The desktop thumbnailof the desktop screen includes a desktop object thumbnail, where thedesktop object thumbnail is in a one-to-one correspondence with thedesktop object on the desktop screen.

In an embodiment provided in the present disclosure, a specific processof the acquiring a desktop thumbnail of each desktop screen in a desktopscreen set may be as follows.

A1. Perform zooming-out processing on each desktop screen in the desktopscreen set and the desktop object on the desktop screen according to apreset zoom ratio, to obtain the desktop thumbnail of each desktopscreen in the desktop screen set.

In this embodiment, the preset zoom ratio may be set according to ascreen size of the terminal device and a quantity of desktop screensincluded on the desktop of the terminal device.

A2. Scan the desktop thumbnail of each desktop screen in the desktopscreen set, to acquire a screen identifier and first locationinformation that are of the desktop thumbnail.

The screen identifier of the desktop thumbnail refers to an identifierof a desktop screen corresponding to the desktop thumbnail, and is usedto represent that the desktop thumbnail is a desktop thumbnail of adesktop screen identified by the screen identifier.

The first location information is information about a location that isof the desktop object thumbnail included in the desktop thumbnail andthat is in the desktop thumbnail, and the first location information isalso represented using a relative location in a grid matrix. In thisway, after zooming-out processing is performed on the desktop screenaccording to the preset zoom ratio, only a size of the desktop screenchanges, but a quantity of orders of the grid matrix does not change,and therefore, a location that is of a desktop object and that is on thedesktop screen is a location that is of a desktop object thumbnailcorresponding to the desktop object and that is in the desktopthumbnail.

A specific form of the first location information may be the followingtriplet: (a screen identifier of a desktop thumbnail, an X-coordinate,and a Y-coordinate), where the screen identifier of the desktopthumbnail is used to represent a desktop thumbnail to which a desktopobject thumbnail belongs, and the X-coordinate and the Y-coordinate areused to represent location coordinates that are of the desktop objectthumbnail and that are in the desktop thumbnail to which the desktopobject thumbnail belongs. The location coordinates are represented usinga relative location in a grid matrix, where the X-coordinate representsa row coordinate in the grid matrix, and the Y-coordinate represents acolumn coordinate in the grid matrix.

That the desktop screen set includes three desktop screens is used as anexample. Referring to FIG. 2A, FIG. 2B, and FIG. 2C, FIG. 2A, FIG. 2B,and FIG. 2C are three desktop screens whose screen identifiers arerespectively 01, 02, and 03. Each of the three desktop screens isdivided into six display areas according to a grid matrix of a 3×2order. On a desktop screen whose screen identifier is 01 in FIG. 2A, alocation that is of a desktop object B′ and that is on the desktopscreen is (1, 2), that is, the desktop object B′ is located at ajunction between the first row and the second column of the desktopscreen shown in FIG. 2A. On a desktop screen whose screen identifier is02 in FIG. 2B, a location that is of a desktop object E′ and that is onthe desktop screen is (1, 1), that is, the desktop object E′ is locatedat a junction between the first row and the first column of the desktopscreen shown in FIG. 2B. On a desktop screen whose screen identifier is03 in FIG. 2C, a location that is of a desktop object I′ and that is onthe desktop screen is (1, 2), that is, the desktop object I′ is locatedat a junction between the first row and the second column of the desktopscreen shown in FIG. 2C.

After zooming-out processing is performed on the desktop screens shownin FIG. 2A, FIG. 2B, and FIG. 2C and desktop objects on the desktopscreens according to the preset zoom ratio, desktop thumbnails, shown inFIG. 3A, FIG. 3B, and FIG. 3C, of the desktop screens are obtained. Adesktop object thumbnail included in the desktop thumbnail shown in FIG.3A is in a one-to-one correspondence with the desktop object on thedesktop screen shown in FIG. 2A, for example, a desktop object thumbnailB included in the desktop thumbnail shown in FIG. 3A is corresponding tothe desktop object B′ on the desktop screen shown in FIG. 2A. A desktopobject thumbnail included in the desktop thumbnail shown in FIG. 3B isin a one-to-one correspondence with the desktop object on the desktopscreen shown in FIG. 2B; for example, a desktop object thumbnail Eincluded in the desktop thumbnail shown in FIG. 3B is corresponding tothe desktop object E′ on the desktop screen shown in FIG. 2B. A desktopobject thumbnail included in the desktop thumbnail shown in FIG. 3C isin a one-to-one correspondence with the desktop object on the desktopscreen shown in FIG. 2C; for example, a desktop object thumbnail Iincluded in the desktop thumbnail shown in FIG. 3C is corresponding tothe desktop object I′ on the desktop screen shown in FIG. 2C.

Because a relative location in a grid matrix is also used for locationcoordinates that are of the desktop object thumbnail and that are in thedesktop thumbnail to which the desktop object thumbnail belongs, thelocation coordinates that are of the desktop object thumbnail and thatare in the desktop thumbnail are location coordinates that are of adesktop object corresponding to the desktop object thumbnail and thatare on the desktop screen. For example, location coordinates that are ofthe desktop object thumbnail B and that are in the desktop thumbnailshown in FIG. 3A are the same as location coordinates that are of thedesktop object B′ and that are on the desktop screen shown in FIG. 2A,where the location coordinates are (1, 2); in this way, first locationinformation of the desktop object thumbnail B is (01, 1, 2), and thedesktop object thumbnail B is at a junction between the first row andthe second column of the desktop thumbnail shown in FIG. 3A. Locationcoordinates that are of the desktop object thumbnail E and that are inthe desktop thumbnail shown in FIG. 3B are the same as locationcoordinates that are of the desktop object E′ and that are on thedesktop screen shown in FIG. 2B, where the location coordinates are (1,1); in this way, first location information of the desktop objectthumbnail E is (02, 1, 1). Location coordinates that are of the desktopobject thumbnail I and that are in the desktop thumbnail shown in FIG.3C are the same as location coordinates that are of the desktop objectI′ and that are on the desktop screen shown in FIG. 2C, where thelocation coordinates are (1, 2); in this way, first location informationof the desktop object thumbnail I is (03, 1, 2).

In an embodiment provided in the present disclosure, a specific processof the collectively displaying all the acquired desktop thumbnails on adesktop home screen may be as follows.

B1: Display, on the desktop home screen, a window interface that is in aone-to-one correspondence with the desktop thumbnail of each desktopscreen in the desktop screen set.

A quantity of window interfaces displayed on the desktop home screen isthe same as a quantity of acquired desktop thumbnails.

B2: Correspondingly display, according to the screen identifier of thedesktop thumbnail, the acquired desktop thumbnails on the windowinterface that is on the desktop home screen, and display, on thedesktop thumbnail according to the first location information, thedesktop object thumbnail that is in the desktop thumbnail.

Referring to FIG. 4, FIG. 4 is an exemplary diagram of collectivelydisplaying, on the desktop home screen, the desktop thumbnails shown inFIG. 3A, FIG. 3B, and FIG. 3C according to an embodiment of the presentdisclosure. Because all the acquired desktop thumbnails are collectivelydisplayed on the desktop home screen, a user can more intuitively andclearly see, using the desktop home screen, a desktop screen included onthe desktop of the terminal device and a desktop object on each desktopscreen, so that a desktop object whose location needs to be changed canbe located more accurately.

S102. Listen to a sequence of tapping operations performed on thedesktop thumbnails displayed on the desktop home screen, and determine atapping location of each tapping operation in the sequence of tappingoperations. The tapping location includes a tapped desktop thumbnail andlocation coordinates that are of the tapping operation and are in thetapped desktop thumbnail.

Specifically, a specific form of a tapping location of each tappingoperation may be the following triplet: (a screen identifier of adesktop thumbnail, an X-coordinate, and a Y-coordinate). The screenidentifier of the desktop thumbnail represents a desktop thumbnailtapped in the tapping operation, the X-coordinate and the Y-coordinaterepresent location coordinates that are of the tapping operation andthat are in the tapped desktop thumbnail. The location coordinates arerepresented using a relative location in a grid matrix, where theX-coordinate represents a row coordinate in the grid matrix, and theY-coordinate represents a column coordinate in the grid matrix.

In this embodiment, after the acquired desktop thumbnails arecollectively displayed on the desktop home screen, the sequence oftapping operations performed on the desktop thumbnails displayed on thedesktop home screen is listened to, and the tapping location of eachtapping operation in the sequence of tapping operations is determined.The sequence of tapping operations includes several tapping operationswith tapping order.

A specific process of the determining a tapping location of each tappingoperation may be as follows: acquiring location coordinates that are ofthe tapping operation and that are on a screen used to display thedesktop home screen, determining a desktop thumbnail displayed at thelocation coordinates and a desktop object thumbnail displayed at thelocation coordinates, and acquiring location coordinates that are of thedesktop object thumbnail displayed at the location coordinates and thatare in the desktop thumbnail displayed at the location coordinates,where the desktop thumbnail displayed at the location coordinates is thedesktop thumbnail tapped in the tapping operation, and the locationcoordinates that are of the desktop object thumbnail displayed at thelocation coordinates and that are in the desktop thumbnail displayed atthe location coordinates are location coordinates that are of thetapping operation and that are in the tapped desktop thumbnail.

A tapping operation may be performed on one or more desktop thumbnails,and a tapping operation may include multiple tapping locations. In thisway, in one tapping operation, one or more desktop object thumbnails onthe desktop home screen may be selected. Exemplary descriptions are asfollows.

It is assumed that, after the acquired desktop thumbnails arecollectively displayed on the desktop home screen, as shown in FIG. 4,when a user selects once, on the desktop home screen shown in FIG. 4,multiple desktop object thumbnails in the desktop thumbnailcorresponding to the desktop screen 01, the tapping operation includesmultiple tapping locations, and the multiple tapping locations arelocations that are of the multiple desktop object thumbnails on whichthe tapping operation is performed and that are in the desktop thumbnailcorresponding to the desktop screen 01. In this embodiment, one or moredesktop object thumbnails on the desktop home screen may be selectedusing one tapping operation, which facilitates subsequent locationexchange performed, according to the one or more desktop objectthumbnails on the desktop home screen that are selected in the tappingoperation, on desktop objects that are in a one-to-one correspondencewith the one or more desktop object thumbnails, so that locations ofdesktop objects can be exchanged in batches.

S103. Sort and display, according to the tapping location of eachtapping operation in the sequence of tapping operations, desktop objectsthat are on each desktop screen on the multi-screen desktop.

In this embodiment, because each desktop thumbnail displayed on adesktop home screen is in a one-to-one correspondence with a desktopscreen, and a desktop object thumbnail in each desktop thumbnail is in aone-to-one correspondence with a desktop object on the desktop screen,after a tapping location of each tapping operation in a sequence oftapping operations is acquired, a desktop screen tapped in the tappingoperation may be determined according to a desktop thumbnail tapped inthe tapping operation, and a desktop object tapped on the tapped desktopscreen in the tapping operation may be determined according to locationcoordinates of the desktop thumbnail tapped in the tapping operation. Inthis way, locations of desktop objects on each desktop screen on amulti-screen desktop may be exchanged according to the tapping locationof each tapping operation in the sequence of tapping operations, so asto achieve an objective of sorting and displaying desktop objects oneach desktop screen on the multi-screen desktop.

In this embodiment of the present disclosure, desktop thumbnails ofdesktop screens on a multi-screen desktop are collectively displayed ona desktop home screen, so that a user does not need to drag a desktopobject from one desktop screen to another desktop screen to exchangelocations of desktop objects; instead, a desktop object thumbnail in thedesktop thumbnail may be directly tapped on the desktop home screen toexchange locations of desktop objects on a same desktop screen orexchange locations of desktop objects on different desktop screens.Therefore, a sorting operation on desktop objects is simple, consumesless time, and has high locating accuracy.

In an embodiment provided in the present disclosure, a specific processof the sorting and displaying, according to the tapping location of eachtapping operation in the sequence of tapping operations, desktop objectsthat are on each desktop screen on the multi-screen desktop is shown inFIG. 5, and detailed descriptions are as follows.

S201. Group a sequence of tapping operations into several tappingoperation pairs using an odd-even matching rule.

The odd-even matching rule refers to grouping a tapping operation of anodd time and a tapping operation of an even time into a group. Aspecific process of the grouping a sequence of tapping operations intoseveral tapping operation pairs using an odd-even matching rule is asfollows: grouping, according to time order of the tapping operations inthe sequence of tapping operations, a tapping operation of an odd timeand a tapping operation of an even time that are neighboring to eachother into a tapping operation pairs. Exemplary descriptions are asfollows.

It is assumed that a user consecutively performs six tapping operationson the desktop thumbnails displayed on the desktop home screen, thesequence of tapping operations includes the six tapping operations, andthe six tapping operations are arranged as follows according to timeorder: the first tapping operation, the second tapping operation, thethird tapping operation, the fourth tapping operation, the fifth tappingoperation, and the sixth tapping operation. The first tapping operation,the third tapping operation, and the fifth tapping operation are tappingoperations of an odd time, and the second tapping operation, the fourthtapping operation, and the sixth tapping operation are tappingoperations of an even time.

When the sequence of tapping operations is grouped into several tappingoperation pairs using the odd-even matching rule, the first tappingoperation and the second tapping operation are group into a tappingoperation pairs, the third tapping operation and the fourth tappingoperation are grouped into a tapping operation pairs, and the fifthtapping operation and the sixth tapping operation are grouped into atapping operation pairs. When the sequence of tapping operations furtherincludes other tapping operations, the other tapping operations includedin the sequence of tapping operations continue to be grouped intoseveral tapping operation pairs according to this principle.

However, when the sequence of tapping operations includes an oddquantity of tapping operations, the last tapping operation included inthe sequence of tapping operations is not involved in the grouping. Forexample, it is assumed that the user consecutively performs seventapping operations on the desktop thumbnails displayed on the desktophome screen, the sequence of tapping operations includes the seventapping operations. The first tapping operation and the second tappingoperation in the sequence of tapping operations are grouped into atapping operation pairs, the third tapping operation and the fourthtapping operation are grouped into a tapping operation pairs, the fifthtapping operation and the sixth tapping operation are grouped into atapping operation pairs, and the seventh tapping operation in thesequence of tapping operations is not involved in the grouping.

S202. For each tapping operation pairs, determine, according to adesktop thumbnail tapped in each tapping operation in the tappingoperation pair, a desktop screen tapped in the tapping operation, anddetermine, according to location coordinates that are of each tappingoperation and are in the tapped desktop thumbnail, a location tapped onthe tapped desktop screen in the tapping operation.

In this embodiment, because a desktop thumbnail displayed on a desktophome screen is in a one-to-one correspondence with a desktop screen, adesktop screen corresponding to a desktop thumbnail tapped in eachtapping operation is acquired according to the desktop thumbnail tappedin the tapping operation; in this case, the desktop screen correspondingto the desktop thumbnail tapped in the tapping operation can be used asa desktop screen tapped in the tapping operation. Because a desktopobject thumbnail in each desktop thumbnail is in a one-to-onecorrespondence with a desktop object on a corresponding desktop screen,a desktop object thumbnail tapped in the tapped desktop thumbnail ineach tapping operation may be determined according to locationcoordinates that are of the tapping operation and are in the tappeddesktop thumbnail, a desktop object corresponding to the desktop objectthumbnail is acquired, and location coordinates that are of the desktopobject corresponding to the desktop object thumbnail and that are on thetapped desktop screen are used as a location tapped on the tappeddesktop screen in the tapping operation. Exemplary descriptions are asfollows.

Referring to FIG. 6, FIG. 6 is an exemplary diagram formed after a userperforms a tapping operation on the desktop home screen shown in FIG. 3.It is assumed that the user sequentially taps, on the desktop homescreen shown in FIG. 6, a desktop object thumbnail B that is of locationcoordinates (1, 2) and that is in a desktop thumbnail whose screenidentifier is 01, a desktop object thumbnail I that is of locationcoordinates (1, 2) and that is in a desktop thumbnail whose screenidentifier is 03, a desktop object thumbnail H that is of locationcoordinates (2, 3) and that is in a desktop thumbnail whose screenidentifier is 02, and a desktop object thumbnail that is of locationcoordinates (2, 3) and that is in the desktop thumbnail whose screenidentifier is 03, the sequence of tapping operations includes fourtapping operations, where the first tapping operation and the secondtapping operation are a tapping operation pairs, and the third tappingoperation and the fourth tapping operation are a tapping operationpairs. A tapping location of the first tapping operation in the tappingoperation pair is (01, 1, 2), a desktop screen tapped in the firsttapping operation is the desktop screen whose screen identifier is 01,and a location tapped on the tapped desktop screen in the tappingoperation is (1, 2); a tapping location of the second tapping operationis (03, 1, 2), a desktop screen tapped in the second tapping operationis the desktop screen whose screen identifier is 03, and a locationtapped on the tapped desktop screen in the tapping operation is (1, 2).In the other tapping operation pairs, a tapping location of the thirdtapping operation is (02, 2, 3), a desktop screen tapped in the thirdtapping operation is the desktop screen whose screen identifier is 02,and a location tapped on the tapped desktop screen in the tappingoperation is (2, 3); a tapping location of the fourth tapping operationis (03, 2, 3), a desktop screen tapped in the fourth tapping operationis the desktop screen whose screen identifier is 03, and a locationtapped on the tapped desktop screen in the tapping operation is (2, 3).

In another embodiment of the present disclosure, because a desktopthumbnail displayed on a desktop home screen is in a one-to-onecorrespondence with a desktop screen, a desktop screen corresponding toa desktop thumbnail tapped in each tapping operation is acquiredaccording to the desktop thumbnail tapped in the tapping operation; inthis case, the desktop screen corresponding to the desktop thumbnailtapped in the tapping operation can be used as a desktop screen tappedin the tapping operation. Because a relative location in a grid matrixis used for both of a location of a desktop object on a desktop screenand a location of a desktop object thumbnail in a desktop thumbnail, alocation tapped on the tapped desktop screen in each tapping operationmay be directly determined according to location coordinates that are ofthe tapping operation and are in the tapped desktop thumbnail.

S203. For each tapping operation pairs, exchange locations of desktopobjects that are in the locations tapped on the tapped desktop screensin the tapping operations in the tapping operation pair.

Specifically, if a blank area is tapped in one tapping operation in thetapping operation pair, a desktop object in a location tapped in theother tapping operation in the tapping operation pair is moved to theblank area tapped in the tapping operation; if blank areas are tapped inboth two tapping operations in the tapping operation pair, no locationexchange processing is required.

Exemplary descriptions are as follows.

It is assumed that the user sequentially taps, on the desktop homescreen shown in FIG. 6, the desktop object thumbnail B that is oflocation coordinates (1, 2) and that is in the desktop thumbnail whosescreen identifier is 01, the desktop object thumbnail I that is oflocation coordinates (1, 2) and that is in the desktop thumbnail whosescreen identifier is 03, the desktop object thumbnail H that is oflocation coordinates (2, 3) and that is in the desktop thumbnail whosescreen identifier is 02, and the desktop object thumbnail that is oflocation coordinates (2, 3) and that is in the desktop thumbnail whosescreen identifier is 03, locations of a desktop object B′ on the desktopscreen 01 and a desktop object I′ on the desktop screen 03 areexchanged, and a desktop object H′ on the desktop screen 02 is moved toa blank area that is at location coordinates (2, 3) on the desktopscreen 03. After the foregoing sorting and displaying, the following maybe obtained: the desktop screen 01 shown in FIG. 2A is changed into adesktop screen shown in FIG. 7A, the desktop screen shown in FIG. 2B ischanged into a desktop screen shown in FIG. 7B, and the desktop screenshown in FIG. 2C is changed into a desktop screen shown in FIG. 7C.

In this embodiment, for each tapping operation pairs, a desktop screentapped in the tapping operation and a location tapped on the tappeddesktop screen are directly determined according to a tapping locationof each tapping operation in the tapping operation pairs, and locationsof desktop objects that are at locations tapped on the tapped desktopscreens in the tapping operations of each tapping operation pairs areexchanged, so that desktop objects on each desktop screen on amulti-screen desktop can be sorted and displayed. In this way, a sortingmanner is simpler and more convenient.

In another embodiment provided in the present disclosure, a specificprocess of the sorting and displaying, according to the tapping locationof each tapping operation in the sequence of tapping operations, desktopobjects that are on each desktop screen on the multi-screen desktop isshown in FIG. 8, and detailed descriptions are as follows.

S301. Group a sequence of tapping operations into several tappingoperation pairs using an odd-even matching rule. A specific process isdescribed above, and details are not described herein again.

S302. For each tapping operation pairs, determine, according to adesktop thumbnail tapped in each tapping operation in the tappingoperation pair and location coordinates that are of the tappingoperation and are in the tapped desktop thumbnail, a desktop objectthumbnail tapped in the tapping operation.

S303. For each tapping operation pairs, exchange locations of thedesktop object thumbnails tapped in the tapping operations in thetapping operation pair. Exemplary descriptions are as follows.

Referring to FIG. 6, if in one group of tapping operation pairs, atapping location of one tapping operation is (01, 1, 2) and a tappinglocation of the other tapping operation is (03, 1, 2); and in othergroup of tapping operation pairs, a tapping location of one tappingoperation is (02, 2, 3) and a tapping location of the other tappingoperation is (03, 2, 3), a location of a desktop object thumbnail B in adesktop thumbnail whose screen identifier is 01 in FIG. 6 and a locationof a desktop object thumbnail I in a desktop thumbnail whose screenidentifier is 03 are exchanged, and a desktop object thumbnail H in adesktop thumbnail whose screen identifier is 02 is moved to a desktopobject thumbnail that is of location coordinates (2, 3) and that is inthe desktop thumbnail whose screen identifier is 03, where the desktopobject thumbnail that is of location coordinates (2, 3) and that is inthe desktop thumbnail whose screen identifier is 03 is a blank area.After the foregoing sorting, the desktop thumbnail that is shown in FIG.6 and that is on the desktop home screen is changed into a desktopthumbnail that is shown in FIG. 9 and that is on the desktop homescreen.

S304. Sort and display, according to each desktop thumbnail displayed ona desktop home screen and a desktop object thumbnail included in thedesktop thumbnail, desktop objects on a desktop screen that is in thedesktop screen set and is corresponding to each desktop thumbnail.

Specifically, a screen identifier and second location information thatare of the desktop thumbnail are acquired, where the second locationinformation is information about a location that is of the desktopobject thumbnail in the desktop thumbnail and that is in the desktopthumbnail; a desktop object that is in a one-to-one correspondence withthe desktop object thumbnail in the desktop thumbnail is displayed,according to the second location information, on a desktop screencorresponding to the screen identifier.

A specific form of the second location information may be a form of thefollowing triplet: (a screen identifier of a desktop thumbnail, anX-coordinate, and a Y-coordinate). The screen identifier of the desktopthumbnail represents a screen identifier of a desktop thumbnail to whicha desktop object thumbnail belongs, and the X-coordinate and theY-coordinate represent location coordinates that are of the desktopobject thumbnail and that are in the desktop thumbnail to which thedesktop object thumbnail belongs. The location coordinates arerepresented using a relative location in a grid matrix, where theX-coordinate represents a row coordinate, and the Y-coordinaterepresents a column coordinate.

Exemplary descriptions are as follows.

According to a desktop thumbnail that is displayed on the desktop homescreen and that is of the screen identifier 01 and a desktop objectthumbnail included in the desktop thumbnail, a desktop objectcorresponding to the desktop object thumbnail included in the desktopthumbnail whose screen identifier is 01 is displayed on the desktopscreen 01; and when the desktop object is displayed on the desktopscreen 01, the desktop object corresponding to the desktop objectthumbnail is displayed on the desktop screen according to locationcoordinates that are of the desktop object thumbnail and that are in thedesktop thumbnail. For example, after desktop objects on a desktopscreen that is corresponding to each desktop thumbnail and that is in adesktop screen set are sorted and displayed according to desktopthumbnails on a desktop home screen shown in FIG. 9 and a desktop objectthumbnail included in each desktop thumbnail, the desktop screen 01shown in FIG. 7A, the desktop screen 02 shown in FIG. 7B, and thedesktop screen 03 shown in FIG. 7C can be obtained.

In this embodiment, location exchange is performed according to adesktop object thumbnail tapped in each tapping operation of eachtapping operation pairs, so that a user can preview sorting order ofdesktop objects on each desktop screen on a multi-screen desktop afterlocation exchange is performed, and a sorting result is more intuitive,thereby improving accuracy of a sorting operation.

FIG. 10 shows a structure of a system for sorting desktop objectsaccording to an embodiment of the present disclosure. For ease ofdescription, only a part related to this embodiment of the presentdisclosure is shown.

The system may be used in a mobile terminal, for example, a smart phone,a tablet computer, or the like, or may be a software unit, a hardwareunit, or a unit combining software and hardware that runs in a mobileterminal, or may be integrated into a mobile terminal or run in anapplication system of a mobile terminal as an independent attachment.

The system for sorting desktop objects includes a displaying unit 1configured to acquire a desktop thumbnail of each desktop screen in adesktop screen set, and collectively display all the acquired desktopthumbnails on a desktop home screen, where the desktop screen setincludes at least one desktop screen on a multi-screen desktop, thedesktop thumbnail of the desktop screen includes a desktop objectthumbnail that is in a one-to-one correspondence with a desktop objecton the desktop screen, and the desktop home screen is any desktop screenon the multi-screen desktop; a listening unit 2 configured to listen toa sequence of tapping operations performed on the desktop thumbnailsdisplayed on the desktop home screen, and determine a tapping locationof each tapping operation in the sequence of tapping operations, wherethe tapping location includes a tapped desktop thumbnail and locationcoordinates that are of the tapping operation and are in the tappeddesktop thumbnail; where the sequence of tapping operations includesseveral tapping operations with tapping order, each tapping operationmay be performed on one or more desktop thumbnails, and each tappingoperation may include multiple tapping locations; and a sorting unit 3configured to sort and display, according to the tapping location ofeach tapping operation in the sequence of tapping operations, desktopobjects that are on each desktop screen on the multi-screen desktop.

Further, the displaying unit 1 includes a thumbnail processing module 11and a thumbnail acquiring module 12, where the thumbnail processingmodule 11 is configured to perform zooming-out processing on eachdesktop screen in the desktop screen set and the desktop object on thedesktop screen according to a preset zoom ratio, to obtain the desktopthumbnail of each desktop screen in the desktop screen set; and thethumbnail acquiring module 12 is configured to scan the desktopthumbnail of each desktop screen in the desktop screen set, to acquire ascreen identifier and first location information that are of the desktopthumbnail, where the first location information is information about alocation that is of the desktop object thumbnail included in the desktopthumbnail and that is in the desktop thumbnail.

Further, the displaying unit 1 further includes a window displayingmodule 13 and a thumbnail displaying module 14, where the windowdisplaying module 13 is configured to display, on the desktop homescreen, a window interface that is in a one-to-one correspondence withthe desktop thumbnail of each desktop screen in the desktop screen set;and the thumbnail displaying module 14 is configured to correspondinglydisplay, according to the screen identifier of the desktop thumbnail,the acquired desktop thumbnails on the window interface that is on thedesktop home screen, and display, on the desktop thumbnail according tothe first location information, the desktop object thumbnail that is inthe desktop thumbnail.

Further, the sorting unit 3 includes an operation pair grouping module31, a tapping location determining module 32, and a location exchangingmodule 33, where the operation pair grouping module 31 is configured togroup the sequence of tapping operations into several tapping operationpairs using an odd-even matching rule; the tapping location determiningmodule 32 is configured to, for each tapping operation pairs, determine,according to a desktop thumbnail tapped in each tapping operation in thetapping operation pair, a desktop screen tapped in the tappingoperation, and determine, according to location coordinates that are ofeach tapping operation and are in the tapped desktop thumbnail, alocation tapped on the tapped desktop screen in the tapping operation;and the location exchanging module 33 is configured to, for each tappingoperation pairs, exchange locations of desktop objects that are in thelocations tapped on the tapped desktop screens in the tapping operationsin the tapping operation pair.

Further, referring to FIG. 11, the sorting unit 3 includes an operationpair grouping module 31, a tapped-thumbnail determining module 34, athumbnail location exchanging module 35, and a sorting and displayingmodule 36, where the operation pair grouping module 31 is configured togroup the sequence of tapping operations into several tapping operationpairs using an odd-even matching rule; the tapped-thumbnail determiningmodule 34 is configured to, for each tapping operation pairs, determine,according to a desktop thumbnail tapped in each tapping operation in thetapping operation pair and location coordinates that are of the tappingoperation and are in the tapped desktop thumbnail, a desktop objectthumbnail tapped in the tapping operation; the thumbnail locationexchanging module 35 is configured to, for each tapping operation pairs,exchange locations of the desktop object thumbnails tapped in thetapping operations in the tapping operation pair; and the sorting anddisplaying module 36 is configured to sort and display, according toeach desktop thumbnail displayed on the desktop home screen and thedesktop object thumbnail included in the desktop thumbnail, desktopobjects on a desktop screen that is in the desktop screen set and iscorresponding to the desktop thumbnail.

Further, the sorting and displaying module 36 is specifically configuredto acquire a screen identifier and second location information that areof the desktop thumbnail, where the second location information isinformation about a location that is of the desktop object thumbnail inthe desktop thumbnail and that is in the desktop thumbnail; and display,according to the second location information and on a desktop screencorresponding to the screen identifier, a desktop object that is in aone-to-one correspondence with the desktop object thumbnail in thedesktop thumbnail.

Functional units or modules described in the foregoing embodiment may beconfigured to implement the methods in FIG. 1 to FIG. 9.

It should be noted that, units included in the foregoing system aremerely divided according to functional logic but are not limited to theforegoing division provided that corresponding functions can beimplemented. In addition, specific names of functional units are onlyused for mutual differentiation instead of limiting the protection scopeof the present disclosure.

Referring to FIG. 12, FIG. 12 is a schematic diagram of a mobileterminal 700 according to an embodiment of the present disclosure. Themobile terminal 700 may be a smart phone, a tablet computer, or thelike, and specific implementation of the mobile terminal 700 is notlimited in a specific embodiment of the present disclosure. The mobileterminal 700 includes a processor 710, a communications interface 720, amemory 730, and a bus 740.

The processor 710, the communications interface 720, and the memory 730perform mutual communication using the bus 740.

The communications interface 720 is configured to communicate with anetwork element, for example, a virtual machine management center 280 ora shared memory 240.

The processor 710 is configured to execute a program 732.

Specifically, the program 732 may include program code, where theprogram code includes a computer operation instruction.

The processor 710 may be a central processing unit (CPU), anapplication-specific integrated circuit (ASIC), or one or moreintegrated circuits configured to implement this embodiment of thepresent disclosure.

The memory 730 is configured to store the program 732. The memory 730may include a high speed random-access memory (RAM), or may furtherinclude a non-volatile memory, for example, at least one magnetic diskmemory. The program 732 may specifically include a displaying unit 1configured to acquire a desktop thumbnail of each desktop screen in adesktop screen set, and collectively display all the acquired desktopthumbnails on a desktop home screen, where the desktop screen setincludes at least one desktop screen on a multi-screen desktop, thedesktop thumbnail of the desktop screen includes a desktop objectthumbnail that is in a one-to-one correspondence with a desktop objecton the desktop screen, and the desktop home screen is any desktop screenon the multi-screen desktop; a listening unit 2 configured to listen toa sequence of tapping operations performed on the desktop thumbnailsdisplayed on the desktop home screen, and determine a tapping locationof each tapping operation in the sequence of tapping operations, wherethe tapping location includes a tapped desktop thumbnail and locationcoordinates that are of the tapping operation and are in the tappeddesktop thumbnail; and a sorting unit 3 configured to sort and display,according to the tapping location of each tapping operation in thesequence of tapping operations, desktop objects that are on each desktopscreen on the multi-screen desktop.

For specific implementation of units in the program 732, reference ismade to corresponding units in the embodiment shown in FIG. 10 to FIG.11, and details are not described herein again.

It may be clearly understood by a person skilled in the art that, forthe purpose of convenient and brief description, for a detailed workingprocess of the foregoing system and unit, reference may be made to acorresponding process in the foregoing method embodiments, and detailsare not described herein again.

A person of ordinary skill in the art may understand that all or a partof the steps of the methods in the embodiments may be implemented by aprogram instructing relevant hardware. The program may be stored in acomputer readable storage medium, such as a read-only memory (ROM), aRAM, a magnetic disk, or an optical disc.

In the embodiments of the present disclosure, desktop thumbnails ofdesktop screens on a multi-screen desktop are collectively displayed ona desktop home screen, so that a desktop object thumbnail in the desktopthumbnail may be directly tapped on the desktop home screen to exchangelocations of desktop objects on a same desktop screen or exchangelocations of desktop objects on different desktop screens. Therefore, asorting operation on desktop objects is simple, consumes less time, andhas high locating accuracy. Location exchange is performed according toa desktop object thumbnail tapped in each tapping operation of eachtapping operation pairs, so that a user can preview sorting order ofdesktop objects on each desktop screen on the multi-screen desktop afterlocation exchange is performed, and a sorting result is more intuitive,thereby improving accuracy of a sorting operation.

The foregoing descriptions are merely exemplary embodiments of thepresent disclosure, but are not intended to limit the presentdisclosure. Any modification, equivalent replacement, or improvementmade without departing from the spirit and principle of the presentdisclosure should fall within the protection scope

The invention claimed is:
 1. A method for sorting desktop objects,comprising: displaying a first desktop screen that comprises a firstobject at a first location of the first desktop screen; displaying asecond desktop screen that comprises a second object at a secondlocation of the second desktop screen; collectively displaying a desktopscreen set, wherein the desktop screen set comprises a first desktopthumbnail corresponding to the first desktop screen and a second desktopthumbnail corresponding to the second desktop screen, wherein the firstobject is displayed as a first object thumbnail at a third location onthe first desktop thumbnail, and wherein the second object is displayedas a second object thumbnail at a fourth location on the second desktopthumbnail; receiving a first sequential tapping operation on the firstobject thumbnail and the second object thumbnail, wherein the firstsequential tapping operation comprises a sequence of tapping operationsperformed on the first object thumbnail and the second object thumbnail;determining, based on the sequence of tapping operations, a firsttapping location of the first object thumbnail in the first desktopthumbnail and a second tapping location of the second object thumbnailin the second desktop thumbnail, wherein the first tapping locationcomprises a first screen identifier representing the first desktopthumbnail and a first tapping location indicating the third location ofthe first object thumbnail on the first desktop thumbnail, wherein thesecond tapping location comprises a second screen identifierrepresenting the second desktop thumbnail and a second tapping locationindicating the fourth location of the second object thumbnail on thesecond desktop thumbnail, wherein the first tapping location comprises afirst X-coordinate representing a first row in a first relative gridmatrix for representing locations in the first desktop thumbnail andcomprises a first Y-coordinate representing a first column in the firstrelative grid matrix, and wherein the second tapping location comprisesa second X-coordinate representing a second row in a second relativegrid matrix for representing locations in the second desktop thumbnailand comprises a second Y-coordinate representing a second column in thesecond relative grid matrix; exchanging locations of the first objectthumbnail and the second object thumbnail by displaying the first objectthumbnail at the fourth location on the second desktop thumbnail anddisplaying the second object thumbnail at the third location on thefirst desktop thumbnail, wherein exchanging the locations of the firstobject thumbnail and the second object thumbnail comprises exchangingthe first tapping location and the second tapping location; andexchanging, according to the exchanging of the first tapping locationand the second tapping location, locations of the first object and thesecond object by displaying the first object at the second location ofthe second desktop screen and displaying the second object at the firstlocation of the first desktop screen.
 2. The method of claim 1, furthercomprising receiving a plurality of sequential tapping operations,wherein each sequential tapping operation is performed on one or moredesktop thumbnails.
 3. The method of claim 2, further comprisingexchanging locations of object thumbnails based on the plurality ofsequential tapping operations.
 4. The method of claim 1, furthercomprising: receiving a sequence of tapping operations on one or moredesktop thumbnails; grouping the sequence of tapping operations into atleast one tapping operation pair using an odd-even matching rule; andexchanging a fifth position of a third object thumbnail with a sixthposition of a fourth object thumbnail based on each tapping operationpair of the at least one tapping operation pair.
 5. The method of claim1, further comprising: performing zoom-out processing on the firstdesktop screen, the first object on the first desktop screen, the seconddesktop screen, and the second object on the second desktop screenaccording to a preset zoom ratio; obtaining the first desktop thumbnailcorresponding to the first desktop screen and the second desktopthumbnail corresponding to the second desktop screen; and obtaining thefirst object thumbnail corresponding to the first object and the secondobject thumbnail corresponding to the second object.
 6. The method ofclaim 1, further comprising: receiving a second sequential tappingoperation on the first object thumbnail and a first blank area at afifth location of the second desktop screen; and displaying the firstobject thumbnail at the fifth location of the second desktop thumbnail.7. The method of claim 1, further comprising: receiving a thirdsequential tapping operation on a second blank area at a sixth locationof the second desktop screen and the first object thumbnail; anddisplaying the first object thumbnail at the sixth location of thesecond desktop thumbnail.
 8. An apparatus, comprising: a processor; anda memory coupled to the processor and configured to store programminginstructions that, when executed by the processor, cause the apparatusto: display a first desktop screen that comprises a first object at afirst location of the first desktop screen; display a second desktopscreen that comprises a second object at a second location of the seconddesktop screen; collectively display a desktop screen set, wherein thedesktop screen set comprises a first desktop thumbnail corresponding tothe first desktop screen and a second desktop thumbnail corresponding tothe second desktop screen, wherein the first object is displayed as afirst object thumbnail at a third location on the first desktopthumbnail, and wherein the second object is displayed as a second objectthumbnail at a fourth location on the second desktop thumbnail; receivea first sequential tapping operation on the first object thumbnail andthe second object thumbnail, wherein the first sequential tappingoperation comprises a sequence of tapping operations performed on thefirst object thumbnail and the second object thumbnail; determine, basedon the sequence of tapping operations, a first tapping location of thefirst object thumbnail in the first desktop thumbnail and a secondtapping location of the second object thumbnail in the second desktopthumbnail, wherein the first tapping location comprises a first screenidentifier representing the first desktop thumbnail and a first tappinglocation indicating the third location of the first object thumbnail onthe first desktop thumbnail, wherein the second tapping locationcomprises a second screen identifier representing the second desktopthumbnail and a second tapping location indicating the fourth locationof the second object thumbnail on the second desktop thumbnail, whereinthe first tapping location comprises a first X-coordinate representing afirst row in a first relative grid matrix for representing locations inthe first desktop thumbnail and comprises a first Y-coordinaterepresenting a first column in the first relative grid matrix, andwherein the second tapping location comprises a second X-coordinaterepresenting a second row in a second relative grid matrix forrepresenting locations in the second desktop thumbnail and comprises asecond Y-coordinate representing a second column in the second relativegrid matrix; exchange locations of the first object thumbnail and thesecond object thumbnail by displaying the first object thumbnail at thefourth location on the second desktop thumbnail and displaying thesecond object at the third location on the first desktop thumbnail,wherein exchanging the locations of the first object thumbnail and thesecond object thumbnail comprises exchanging the first tapping locationand the second tapping location; and exchange, according to theexchanging of the first tapping location and the second tappinglocation, locations of the first object and the second object bydisplaying the first object at the second location of the second desktopscreen and displaying the second object at the first location of thefirst desktop screen.
 9. The apparatus of claim 8, wherein theprogramming instructions further cause the apparatus to receive aplurality of sequentially tapping operations, and wherein eachsequential tapping operation is performed on one or more desktopthumbnails.
 10. The apparatus of claim 9, wherein the programminginstructions further cause the apparatus to exchange locations of objectthumbnails based on the plurality of sequential tapping operations. 11.The apparatus of claim 8, wherein the programming instructions furthercause the apparatus to: receive a sequence of tapping operations on oneor more desktop thumbnails; group the sequence of tapping operationsinto at least one tapping operation pair using an odd-even matchingrule; and swap a fifth position of a third object thumbnail with a sixthposition of a fourth object thumbnail based on each tapping operationpair of the at least one tapping operation pair.
 12. The apparatus ofclaim 8, wherein the programming instructions further cause theapparatus to: perform zoom-out processing on the first desktop screen,the first object on the first desktop screen, the second desktop screen,and the second object on the second desktop screen according to a presetzoom ratio; obtain the first desktop thumbnail corresponding to thefirst desktop screen and the second desktop thumbnail corresponding tothe second desktop screen; and obtain the first object thumbnailcorresponding to the first object and the second object thumbnailcorresponding to the second object.
 13. The apparatus of claim 8,wherein the programming instructions further cause the apparatus to:receive a second sequential tapping operation on the first objectthumbnail and a first blank area at a fifth location of the seconddesktop screen; and display the first object thumbnail at the fifthlocation of the second desktop thumbnail.
 14. The apparatus of claim 8,wherein the programming instructions further cause the apparatus to:receive a third sequential tapping operation on a second blank area at asixth location of the second desktop screen and the first objectthumbnail; and display the first object thumbnail at the sixth locationof the second desktop thumbnail.
 15. A computer program productcomprising computer-executable instructions stored on a non-transitorycomputer-readable storage medium that, when executed by a processor,cause an apparatus to: display a first desktop screen that comprises afirst object at a first location of the first desktop screen; display asecond desktop screen that comprises a second object at a secondlocation of the second desktop screen; collectively display a desktopscreen set, wherein the desktop screen set comprises a first desktopthumbnail corresponding to the first desktop screen and a second desktopthumbnail corresponding to the second desktop screen, wherein the firstobject is displayed as a first object thumbnail at a third location onthe first desktop thumbnail, and wherein the second object is displayedas a second object thumbnail at a fourth location on the second desktopthumbnail; receive a first sequential tapping operation on the firstobject thumbnail and the second object thumbnail, wherein the firstsequential tapping operation comprises a sequence of tapping operationsperformed on the first object thumbnail and the second object thumbnail;determine, based on the sequence of tapping operations, a first tappinglocation of the first object thumbnail in the first desktop thumbnailand a second tapping location of the second object thumbnail in thesecond desktop thumbnail, wherein the first tapping location comprises afirst screen identifier representing the first desktop thumbnail and afirst tapping location indicating the third location of the first objectthumbnail on the first desktop thumbnail, wherein the second tappinglocation comprises a second screen identifier representing the seconddesktop thumbnail and a second tapping location indicating the fourthlocation of the second object thumbnail on the second desktop thumbnail,wherein the first tapping location comprises a first X-coordinaterepresenting a first row in a first relative grid matrix forrepresenting locations in the first desktop thumbnail and comprises afirst Y-coordinate representing a first column in the first relativegrid matrix, and wherein the second tapping location comprises a secondX-coordinate representing a second row in a second relative grid matrixfor representing locations in the second desktop thumbnail and comprisesa second Y-coordinate representing a second column in the secondrelative grid matrix; exchange locations of the first object thumbnailand the second object thumbnail by displaying the first object thumbnailat the fourth location on the second desktop thumbnail and displayingthe second object at the third location on the first desktop thumbnail,wherein exchanging the locations of the first object thumbnail and thesecond object thumbnail comprises exchanging the first tapping locationand the second tapping location; and exchange, according to theexchanging of the first tapping location and the second tappinglocation, locations of the first object and the second object bydisplaying the first object at the second location of the second desktopscreen and displaying the second object at the first location of thefirst desktop screen.
 16. The computer program product of claim 15,wherein the computer-executable instructions further cause the apparatusto receive a plurality of sequential tapping operations, and whereineach sequential tapping operation is performed on one or more desktopthumbnails.
 17. The computer program product of claim 16, wherein thecomputer-executable instructions further cause the apparatus to exchangelocations of object thumbnails based on the plurality of sequentialtapping operations.
 18. The computer program product of claim 15,wherein the computer-executable instructions further cause the apparatusto: receive a sequence of tapping operations on one or more desktopthumbnails; group the sequence of tapping operations into at least onetapping operation pair using an odd-even matching rule; and swap a fifthposition of a third object thumbnail with a sixth position of a fourthobject thumbnail based on each tapping operation pair of the at leastone tapping operation pair.
 19. The computer program product of claim15, wherein the computer-executable instructions further cause theapparatus to: perform zoom-out processing on the first desktop screen,the first object on the first desktop screen, the second desktop screen,and the second object on the second desktop screen according to a presetzoom ratio; obtain the first desktop thumbnail corresponding to thefirst desktop screen and the second desktop thumbnail corresponding tothe second desktop screen; and obtain the first object thumbnailcorresponding to the first object and the second object thumbnailcorresponding to the second object.
 20. The computer program product ofclaim 15, wherein the computer-executable instructions further cause theapparatus to: receive a second sequential tapping operation on the firstobject thumbnail and a first blank area at a fifth location of thesecond desktop screen; and display the first object thumbnail at thefifth location of the second desktop thumbnail.